|
In computer science, a jagged array, also known as a ragged array, is an array of arrays of which the member arrays can be of different sizes, producing rows of jagged edges when visualized as output. In contrast, C-styled arrays are always rectangular. Arrays of arrays in languages such as Java, Python (multidimensional lists), Ruby, Visual Basic.NET, Perl, PHP, JavaScript, Objective-C, Swift, and Atlas Autocode are implemented as Iliffe vectors. ==Examples== In C#, jagged arrays can be created with the following code: int; // 5 columns for row 0 c()=new int(); // create 3 columns for row 1 In C++/CLI, jagged array can be created with the code:〔(【引用サイトリンク】url=http://www.functionx.com/cppcli/arrays/jagged.htm )〕 using namespace System; int main() 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「Jagged array」の詳細全文を読む スポンサード リンク
|